//
//  FindNextStationTableViewCell.m
//  Qyer
//
//  Created by 赵宇 on 15/9/9.
//  Copyright (c) 2015年 赵宇. All rights reserved.
//

#import "FindNextStationTableViewCell.h"
#import "BaseHeader.h"
@implementation FindNextStationTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
    
        UILabel *nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(5, 0, 150, 0.075*SCREEN_HEIGHT)];
        nameLabel.text = @"发现下一站";
        nameLabel.textColor = [UIColor grayColor];
        nameLabel.font = [UIFont systemFontOfSize:15.];
        [self.contentView addSubview:nameLabel];
        
        self.picture = [[UIImageView alloc]initWithFrame:CGRectMake(5, 0.065*SCREEN_HEIGHT, SCREEN_WIDTH - 10, SCREEN_HEIGHT/3-0.08*SCREEN_HEIGHT)];
        
        [self.contentView addSubview:self.picture];
    }
    return self;
}
-(void)setUpWithModel:(SlideModel *)model
{
    NSURL *url = [NSURL URLWithString:model.photo];
    [self.picture sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"zhanweiPic"]];
    self.url = model.url;
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
